package com.ferryc.commons.exception;

/**
 * 
 * @author ferry
 *
 */
@SuppressWarnings("serial")
public class BaseException extends RuntimeException {

	private static final int DETAULT_CODE = 200;
	private final int status;

	public BaseException() {
		super();
		status = DETAULT_CODE;
	}

	public BaseException(String message) {
		super(message);
		status = DETAULT_CODE;
	}

	public BaseException(String message, int status) {
		super(message);
		this.status = status;
	}

	public BaseException(Throwable cause) {
		super(cause);
		status = DETAULT_CODE;
	}

	public BaseException(String msg, Throwable e) {
		super(msg, e);
		status = DETAULT_CODE;
	}

	public int getStatus() {
		return status;
	}

}
